<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.appspot.etao.*" %>
<%@ page import="com.appspot.etao.model.*" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="org.apache.jasper.tagplugins.jstl.ForEach"%><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>本地User数据列表</title>
<style type="text/css">
<!--
.STYLE3 {color: #FFFFFF; font-weight: bold; }
-->
</style>
</head>

<body>
<ul>
  <li>本地User数据列表如下</li>
</ul>
<table width="797" border="0" align="left">
  <tr>
    <td bgcolor="#000033"><span class="STYLE3">序号</span></td>
    <td bgcolor="#000033"><span class="STYLE3">用户id</span></td>
    <td bgcolor="#000033"><span class="STYLE3">用户昵称</span></td>
    <td bgcolor="#000033"><span class="STYLE3">性别</span></td>
    <td bgcolor="#000033"><span class="STYLE3">买家信用 </span></td>
    <td bgcolor="#000033"><span class="STYLE3">卖家信用</span></td>
    <td bgcolor="#000033"><span class="STYLE3">用户当前居住地</span></td>
    <td bgcolor="#000033"><span class="STYLE3">用户注册时间</span></td>
    <td bgcolor="#000033"><span class="STYLE3">最近登陆时间</span></td>
    <td bgcolor="#000033"><span class="STYLE3">生日</span></td>
    <td bgcolor="#000033"><span class="STYLE3">用户类型</span></td>
    <td bgcolor="#000033"><span class="STYLE3">是否购买多图服务</span></td>
    <td bgcolor="#000033"><span class="STYLE3">可上传商品图片数量</span></td>
    <td bgcolor="#000033"><span class="STYLE3">单张商品图片最大容量(K)</span></td>
    <td bgcolor="#000033"><span class="STYLE3">可上传属性图片数量 </span></td>
    <td bgcolor="#000033"><span class="STYLE3">单张销售属性图片最大容量(K)</span></td>
    <td bgcolor="#000033"><span class="STYLE3">是否受限制</span></td>
    <td bgcolor="#000033"><span class="STYLE3">有无实名认证</span></td>
    <td bgcolor="#000033"><span class="STYLE3">状态</span></td>
    <td bgcolor="#000033"><span class="STYLE3">有无绑定</span></td>
    <td bgcolor="#000033"><span class="STYLE3">是否参加消保</span></td>
  </tr>
  <%
      int i = 1;
      List<UserModel> objList = (List<UserModel>)request.getAttribute("userList");
	  for (UserModel obj : objList) {
  %>
		  <tr>
		    <td><%=i++%></td>
            <td><%=obj.getUserId()%></td>
            <td><%=obj.getNick()%></td>
            <td><%=obj.getSex()%></td>
            <td><%=obj.getBuyerCredit().getLevel()%></td>
            <td><%=obj.getSellerCredit().getLevel()%></td>
            <td><%=obj.getLocation().getCity()%></td>
            <td><%=Constant.FORMATER.format(obj.getCreated())%></td>
            <td><%=obj.getLastVisit()%></td>
            <td><%=obj.getBirthday()%></td>
            <td><%=obj.getType()%></td>
            <td><%=obj.getHasMorePic()%></td>
            <td><%=obj.getItemImgNum()%></td>
            <td><%=obj.getItemImgSize()%></td>
            <td><%=obj.getPropImgNum()%></td>
            <td><%=obj.getPropImgSize()%></td>
            <td><%=obj.getAutoRepost()%></td>
            <td><%=obj.getPromotedType()%></td>
            <td><%=obj.getStatus()%></td>
            <td><%=obj.getAlipayBind()%></td>
            <td><%=obj.getConsumerProtection()%></td>
		  </tr>
  <%
	  }
  %>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<p>&nbsp; </p>
</body>
</html>

